# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=py3-psycopg-pool
pkgver=3.1.8
pkgrel=0
pkgdesc="Connection pool for psycopg"
url="https://www.psycopg.org/"
arch="noarch"
license="LGPL-2.0-or-later"
makedepends="
	py3-gpep517
	py3-setuptools
	py3-wheel
	"
subpackages="$pkgname-pyc"
source="https://github.com/psycopg/psycopg/archive/pool-$pkgver/psycopg-pool-$pkgver.tar.gz
	typing-ext.patch
	"
builddir="$srcdir/psycopg-pool-$pkgver/psycopg_pool"
options="!check"  # no tests provided

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
}

sha512sums="
41c103e100a1d7c5adfb51a05fabab6cacc7e9a1a72ac5eff5136c03a0aec9c058375e8d0bf0cefda4895c780fd4093fa6d3d9c597dd6cf1cd74cfc4795b09d6  psycopg-pool-3.1.8.tar.gz
d15b414584e9a3d02e02a0eaa75eef74eb302f7a98d40c15ff9417c0f6207f2bafd797ee2174378d85789feb49b5b272c62445ef66235b7283493805879590d5  typing-ext.patch
"
